package com.lry.pda.bottom.c.backend.executor;

import com.lry.pda.bottom.c.backend.code.CodeKey;
import com.lry.pda.bottom.c.backend.code.CodeNode;
import com.lry.pda.bottom.c.frontend.Grammar;

public class OptExprExecutor extends BaseExecutor {

	@Override
	public void execute(CodeNode root) {
		int production = (int)root.getAttr(CodeKey.PRODUCTION);
		if(production==Grammar.EXPR_SEMI_TO_OPTEXPR){
			executeChild(root, 0);
		}
	}

}